Skip to content

Add diffs key to FileChange class#290

Merged
MarcelGeo merged 2 commits intomasterfrom
fix-missing-diffs-key
Feb 12, 2026
Merged

Add diffs key to FileChange class#290
MarcelGeo merged 2 commits intomasterfrom
fix-missing-diffs-key

Conversation

@MarcelGeo
Copy link
Contributor

from compare file_set is coming diffs key as diffs are accidentaly diffs key.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 21880134649

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.003%) to 82.377%

Totals Coverage Status
Change from base Build 21823644831: 0.003%
Covered Lines: 4235
Relevant Lines: 5141

💛 - Coveralls

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the local change model to accept a diffs key (a list of diff filenames) when constructing FileChange instances from dictionaries, matching metadata produced during pull/compare flows.

Changes:

  • Add a diffs attribute to FileChange in mergin/local_changes.py.
  • Update test_local_changes_from_dict to include a diffs key in sample input data.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
mergin/local_changes.py Extends FileChange dataclass to include optional diffs list.
mergin/test/test_local_changes.py Updates test fixture data to include diffs key when building FileChange from dicts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MarcelGeo MarcelGeo merged commit d73520e into master Feb 12, 2026
2 of 3 checks passed
@MarcelGeo MarcelGeo deleted the fix-missing-diffs-key branch February 12, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants